import React, {Component} from 'react';
import {
  Form,
  Tabs,
} from 'antd';
import {StoreProvider} from 'iflux2';

import AppStore from './store';
import BasicSetup from './component/basic-setup';
import OptionsSetup from './component/options-setup';

const TabPane = Tabs.TabPane;

@StoreProvider(AppStore)
export default class RegisterLogin extends Component{
  componentDidMount() {
    this.props.store.init();
  }
  render() {
    return (
      <div className="after-sale-set">
        <Tabs defaultActiveKey="1" pusht>
          <TabPane tab="基本设置" key="1">
            <BasicSetup />
          </TabPane>
           <TabPane tab="退货填写项设置" key="2">
            <OptionsSetup />
          </TabPane>
        </Tabs>  
      </div>
    )
  }
}